<template>
    <div class="startpage">
        <!-- 顶部 -->
        <div class="startpage-top">
            <img src="../assets/start-top.png" alt="">
        </div>
        <!-- logo -->
        <div class="startpage-logo">
            <div class="logo-img">
                <img src="../assets/card-logo.png" alt="">
            </div>
            <div class="startpage-desc">BuddyParty</div>
        </div>
        <!-- 中间的信息 -->
        <div class="startpage-info">
            <div class="info-top">Data Security</div>
            <div class="info-bottom">Complete Transparency There are no hidden costs</div>
        </div>
        <!-- 右下角图片 -->
        <div class="start-bottom-right">
            <img src="../assets/startpage-bottom.png" alt="">
        </div>
        <!-- 左下角图标 -->
        <div class="start-bottom-left">
            <img src="../assets/start-tong.png" alt="">
        </div>
    </div>
</template>
<script>
export default {
    mounted() {
        setTimeout(() => {
            if (this.$store.state.xieyi.xieyiCount <= 3) {
                this.$router.push('/sencoed')
            } else {
                this.$router.push('/shouye')
            }
        }, 3000);
    }
}
</script>

<style lang="less" scoped>
@a: 3.75vw;

.startpage {
    width: 100vw;
    height: (666/@a);
    background-color: #fff;
    position: relative;

    .start-bottom-left {
        position: absolute;
        left: (30/@a);
        bottom: (15/@a);
        width: (100/@a);
        height: (100/@a);

        img {
            width: 100%;
        }
    }

    .start-bottom-right {
        position: absolute;
        bottom: 0;
        right: 0;
        width: (300/@a);
        height: (127/@a);

        img {
            width: 100%;
        }
    }

    .startpage-info {
        margin-top: (40/@a);

        .info-top {
            font-family: 'Inter';
            font-style: normal;
            font-weight: 700;
            font-size: (32/@a);
            color: #000000;
            margin-left: (80/@a);
        }

        .info-bottom {
            font-family: 'Inter';
            font-style: normal;
            font-weight: 400;
            font-size: (18/@a);
            color: #000000;
            margin-left: (15/@a);
            margin-right: (15/@a);
            text-align: center;
            margin-top: (20/@a);
        }
    }

    .startpage-logo {
        position: absolute;
        top: (80/@a);
        left: (120/@a);

        .logo-img {
            margin-left: (30/@a);
            width: (80/@a);
            height: (85/@a);

            img {
                width: 100%;
            }
        }

        .startpage-desc {
            font-family: 'Inter';
            font-style: normal;
            font-weight: 700;
            font-size: (25/@a);
            color: #FFFFFF;
            margin-top: (20/@a);
            box-sizing: border-box;
        }
    }

    .startpage-top {
        width: 100vw;
        height: (300/@a);

        img {
            width: 100%;
        }
    }
}
</style>